package com.start.core.annotations;


import io.swagger.v3.oas.annotations.media.Schema;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface StartLog {

    @Schema(name = "日志标题")
    String value();

    @Schema(name = "日志类型", description = " 0 用户访问日志 1系统日志 2定时任务日志")
    int logType() default 0;

    @Schema(name = "日志操作")
    String action();

    boolean save() default true;

    boolean saveMethodArgs() default true;
}
